﻿//     Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Gateway.Console.Models
{
    public class RoleModel
    {
        [Key]
        public int Id { get; set; }

        [Display(Name = "Path Segment")]
        [Required]
        public string RoleName { get; set; }

        public bool IsDefaultRole { get; set; }

        [Display(Name = "Restricted Paths")]
        public virtual ICollection<RestrictionsModel> Restrictions { get; set; }

        [Display(Name = "Flights")]
        public virtual ICollection<FlightModel> Flights { get; set; }
    }
}